package acoes;

import intefacesGraficas.MenuInicial;
import intefacesGraficas.TelaListarPratos;
import intefacesGraficas.TelaPrincipal;

import java.awt.event.ActionEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import java.awt.event.ActionListener;

public class AcaoTelaPratos implements ActionListener, MouseListener{

	@Override
	public void mouseClicked(MouseEvent e) {
		if(e.getSource() == MenuInicial.lbGerenciarPratos)
		{
			TelaPrincipal.layout.show(TelaPrincipal.pnPrincipal, "7");
		}
		if(e.getSource() == MenuInicial.lbListarPratos)
		{
			new TelaListarPratos();
		}
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		TelaPrincipal.layout.show(TelaPrincipal.pnPrincipal, "2");
	}

}
